jQuery(document).ready(function () {
    $("#iDepart").val($("#iDepartHid").val());
})
function doUpd() {
    if (!$("#updateForm").valid())return;
    showMode();
    $.ajax({
        type: "POST",
        data: $('#updateForm').serializeArray(),
        url: rootPath + "/projectCon/ajax/UpdProject",
        dataType: 'json',
        success: function (data, textStatus) {
            if (data.code == '0000') {
                parent.commonJs.alertMsg(data.msg, function () {
                    closeWindow();
                    closeMode();
                });
            } else {
                commonJs.alertMsg(data.msg, function () {
                    closeMode();
                });
            }
        }
    });
}
function closeWindow(){
    window.parent.selectList();
    window.parent.layer.closeAll();
}